package com.lvshi0797.cms.dao;

import java.util.List;
import java.util.Set;

import com.lvshi0797.cms.entities.FProjectInfo;

public interface IProjectInfoDao extends IBaseDao<FProjectInfo> {
	/**
	 * 根据FBaseInfo的Id查询XX年度下所有的项目信息
	 * 
	 * @param baseId
	 * @return
	 */
	public Set<FProjectInfo> findProjectInfoBybaseId(int baseId,String niandu);
	
	public List<FProjectInfo> listProjectInfoBybaseId(int baseId,String niandu);

	/**
	 * 清空baseId下某年度所有的FProjectInfo信息
	 * 
	 * @param baseId
	 */
	public void clearProjectsByBaseId(int baseId, String niandu);

	/**
	 * 将ids里的所有FProjectInfo的id与baseId关联
	 * 
	 * @param ids
	 * @param baseId
	 */
	public void updateProject(Set<Integer> ids, int baseId);

}
